package p.ithorns.framework.common.model;


/**
 * Pair
 * TODO ithorns
 *
 * @author Ht.L
 * @date 2023-06-14 20:57
 * @since 1.0.0
 */
public class Pair<L, R> {

    L left;

    R right;

    Pair() {}

    Pair(L left, R right) {
        this.left = left;
        this.right = right;
    }

    public static <L, R> Pair<L, R> of(L left, R right) {
        return new Pair<>(left, right);
    }

    public L getLeft() {
        return left;
    }

    public void setLeft(L left) {
        this.left = left;
    }

    public R getRight() {
        return right;
    }

    public void setRight(R right) {
        this.right = right;
    }
}